package chinaums.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import chinaums.dao.NumbersMapper;

import chinaums.entity.Numbers;

import chinaums.service.NumbersService;

/**
 * 
 * @author liyongjie
 * @time 2017年7月19日 下午2:29:58
 * @version v1.0
 * @description 实现NumbersService的方法
 */
/*
 *实现了NumbersService的所有方法
 */
@Service
public class NumbersServiceImpl implements NumbersService{
	@Autowired
	private NumbersMapper numbersMapper;
	
	/*
	 * 实现插入方法(non-Javadoc)
	 * @see chinaums.service.NumbersService#insertall(chinaums.entity.Numbers)
	 */
	@Override
	public int insertall(Numbers numbers) {
		// TODO Auto-generated method stub
		return numbersMapper.insertall(numbers);
	}
	
	/*
	 * 实现通过规则编号来查询的方法(non-Javadoc)
	 * @see chinaums.service.NumbersService#select_order(java.lang.String)
	 */
	@Override
	public Numbers select_order(String r_number) {
		// TODO Auto-generated method stub
		return numbersMapper.select_order(r_number);
	}

	

	


}
